﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using Repository;
using Model.Domain_Model;
using Interfaces.General_Interfaces;
using Views.Add_Views;
using Views.Status_Views;
using Presenters;

namespace Views.General_Views
{
    public partial class RoadsView : UserControl, IRoadsView
    {
        RoadsViewPresenter presenter = null;

        public RoadsView()
        {
            InitializeComponent();
            presenter = new RoadsViewPresenter(this);
        }

        T Interfaces.Inherited_Interfaces.IView.ReturnView<T>()
        {
            throw new NotImplementedException();
        }

        void Interfaces.Inherited_Interfaces.IError.ShowError()
        {
            presenter.ShowError(new ErrorView());
        }

        void Interfaces.Inherited_Interfaces.ISuccess.ShowSuccess()
        {
            throw new NotImplementedException();
        }

        void IParamable.SetParams(params object[] param)
        {
            throw new NotImplementedException();
        }

        private void toolStripLabel1_Click(object sender, EventArgs e)
        {
            presenter.RoadAddDisplay(new RoadNewView());
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            presenter.GetAllRoads();
        }

        void Interfaces.Inherited_Interfaces.IGrid.HideColumn()
        {
            throw new NotImplementedException();
        }

        void Interfaces.Inherited_Interfaces.IGrid.MappingColumnName()
        {
            throw new NotImplementedException();
        }

        void Interfaces.Inherited_Interfaces.IGrid.ResizeColumn()
        {
            throw new NotImplementedException();
        }
    }
}
